@import "./../common/common";
main {
  .indexNavBtnColor(@color) {
    background-color: @color;
    box-shadow: 0 0.3rem 0.75rem 0.2rem fade(@color, 60);
  }
  /*首页导航轮播图样式*/
  .indexNavSlide {
    height: 460px;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
    /*分类列表*/
    .menuContent {
      width: 224px;
      height: 460px;
      border-top-left-radius: 8px;
      border-bottom-left-radius: 8px;
      background-color: rgba(7, 17, 27, .5);
      padding: 8px 0;
      z-index: 3;
      position: absolute;
      left: 0;
    }
    .navSlideItem {
      width: 100%;
      padding: 0 16px;
      cursor: pointer;
      line-height: 66px;
    }
    /*列表按钮样式*/
    .navSlideItem a {
      display: block;
      color: #fff;
      padding: 0 8px;
      border-bottom: 1px solid rgba(255, 255, 255, .2);
      height: 64px;
      text-decoration: none;
    }
    .navSlideItem:hover {
      background-color: rgba(7, 17, 27, .3);
      &>a {
        color: @themeR;
      }
    }
    .navSlideItem:last-child a {
      border-bottom: none;
    }
    .navSlideItem .fa {
      position: relative;
      top: 27px;
      color: rgba(255, 255, 255, .5);
      font-size: 16px;
      float: right;
    }
    /*轮播图*/
    .innerPic {
      width: 100%;
      height: 460px;
      background-size: 100%;
      background-position: 50%;
      border-radius: 8px;
      z-index: 1;
    }
    .innerPic1 {
      background-image: url('./../../image/DeathtoStock_Medium10.jpg');
    }
    .innerPic2 {
      background-image: url('./../../image/DeathtoStock_Medium10.jpg');
    }
    .innerPic3 {
      background-image: url('./../../image/DeathtoStock_Medium10.jpg');
    }
    .carousel-inner {
      position: absolute;
      top: 0;
      z-index: -1;
    }
    /*轮播图控制按钮*/
    .carousel-indicators {
      cursor: pointer;
      justify-content: flex-end;
      margin-right: 2%;
      >.active {
        background-color: @themeR;
      }
    }
    .carousel-control {
      width: auto;
      height: auto;
      background-image: none !important;
    }
    .carousel-control-prev {
      left: 224px;
    }
    .carousel-control-next {
      right: 0;
    }
  }
  #indexList {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 1rem 0;
    .indexNavBtn {
      flex: 1;
      margin: 1rem 0.5rem;
      display: inline-block;
      padding: 0.5rem 0.75rem;
      font-size: 1.25rem;
      border-radius: 1rem;
      color: white;
      justify-self: space-between;
      transition: all 0.3s;
      &:nth-child(1),
      &:nth-child(4),
      &:nth-child(7) {
        .indexNavBtnColor(@themeR)
      }
      &:nth-child(2),
      &:nth-child(5) {
        .indexNavBtnColor(@themeG)
      }
      &:nth-child(3),
      &:nth-child(6) {
        .indexNavBtnColor(@themeB)
      }
      &:hover,
      &:focus {
        .indexNavBtnColor(rgba(255,
        119,
        85,
        0.863))
      }
    }
  }
  >.card {
    background-color: transparent;
    box-shadow: none;
    .card-title {
      border-bottom: 1px dotted @themeR;
      .cardTitleFirst {
        margin-right: 0.25rem;
        font-size: 1.5em;
        background-color: #ff8c31;
        color: white;
        border-radius: 100%;
        width: 1.5em;
        height: 1.5em;
        display: inline-block;
        text-align: center;
        line-height: 1.5em;
        font-weight: bold;
      }
    }
  }
}
